#include "GSSunday.h"
#include "GSWeekday.h"

GSSunday::GSSunday()
{
	SetStateName("GSSUNDAY");
}

GSSunday::~GSSunday()
{

}

void GSSunday::OnEnter()
{
	fontCustom = Game::GetDevice()->GetInstance()->getGUIEnvironment()->getFont("data/strings/fontcourier.bmp");
	fontCustomBig = Game::GetDevice()->GetInstance()->getGUIEnvironment()->getFont("data/strings/bigfont.png");
}

void GSSunday::OnExit()
{

}

void GSSunday::Update()
{
	if(Game::GetDevice()->receiver.IsKeyUp(KEY_KEY_1))
	{
		Game::GetInstance()->Reset();
		Game::PopState();
	}
}

void GSSunday::Render()
{
	Game::GetDevice()->GetDriver()->beginScene(true, true, video::SColor(255,255,255,255));

	fontCustomBig->draw("SUNDAY", core::rect<s32>(SCREEN_WIDTH/2 - 100, 40, 30, 30), video::SColor(255,255,255,255));
	fontCustom->draw("1. Sleep", core::rect<s32>(80, 300,100,10), video::SColor(255,0,0,0));

	Game::GetDevice()->GetDriver()->endScene();
}